package com.mapper;

import java.util.List;
import java.util.Map;

import com.dto.MeetingDTO;
import com.dto.MeetingViewDTO;
import com.dto.MyMeetingDTO;
import com.pojo.Meeting;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MeetingMapper {
	int addMeeting(Meeting meeting);
	
	int updateMeeting(Meeting meeting);
	
    int deleteMeetingById(Integer id);

    MeetingViewDTO getMeetingById(Integer id);
    
    List<MeetingDTO> getMeetingList(Map map);

    List<MyMeetingDTO> getMeetingListByUid(@Param("uid") Integer uid,
                                           @Param("currentPageNo") int currentPageNo,
                                           @Param("pageSize") int pageSize);

    List<MeetingDTO> getApprovalList(@Param("status") String status,
                                    @Param("currentPageNo") int currentPageNo,
                                    @Param("pageSize") int pageSize);

    int getMeetingCount(@Param("status") String status,
                        @Param("uid") Integer uid);

    int getMeetingCountByUid(@Param("uid") Integer uid);


    int getApprovalCount(String status);
}